<style type="text/css">
#cookies {
	width: 100%;
	height: 300px;
}
</style>
<div class="n-row n-margin-default-top">
	<div class="n-col-5">
		<form method="post" action="cookieSave.html">
		<div class="a-form">
		     <label class="n-col-2">taskId：</label>
		     <div class="n-col-10">
		          <input id="taskId" name="taskId" type="text" />
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2">cookies：</label>
		     <div class="n-col-10">
		     	<textarea id="cookies" name="cookies"></textarea>
		     </div>
		</div>
		<div class="a-form">
		     <label class="n-col-2"></label>
		     <div class="n-col-10">
		          <input type="submit" value="提交"/>
		     </div>
		</div>
		</form>
	</div>
	<div class="n-col-7">
		<table class="a-table a-table-striped">
			<thead>
				<tr><th></th></tr>
			</thead>
			<tbody>
			<?php foreach ($data as $key => $value):
				$taskDetail = json_decode($value, true);?>
				<tr><td rowspan=3><?=$key?></td><td><?=$taskDetail['taskname']?></td></tr>
				<tr><td><?=$taskDetail['agent']?></td></tr>
				<tr><td><?=$taskDetail['cookie']?></td></tr>
			<?php endforeach;?>
			</tbody>
			<tfoot>
			<tr><th></th></tr>
			</tfoot>
		</table>
	</div>
</div>